import request from '@/utils/requestHttp'
export function getUserList(params) {
  return request({
    url: '/user/getUserList',
    method: 'get',
    params,
  })
}

export function upload(params) {
  return request({
    url: '/media/upload',
    method: 'post',
    headers: { 'Content-Type': 'multipart/form-data' },
    params,
  })
}

export function getSiteList(params) {
  return request({
    url: '/site/getSites',
    method: 'get',
    params,
  })
}
export function getPersonageList(params) {
  return request({
    url: '/personage/getPersonages',
    method: 'get',
    params,
  })
}
export function getEventList(params) {
  return request({
    url: '/event/getEvents',
    method: 'get',
    params,
  })
}
export function getTravelList(params) {
  return request({
    url: '/travel/getTravels',
    method: 'get',
    params,
  })
}
export function getForumList(params) {
  return request({
    url: '/forum/getForums',
    method: 'get',
    params,
  })
}
export function getCommentList(params) {
  return request({
    url: '/comment/getCommentList',
    method: 'get',
    params,
  })
}
export function getVideoList() {
  return request({
    url: '/media/getVideos',
    method: 'get',
  })
}
export function addVideoData(data) {
  return request({
    url: '/media/addVideo',
    method: 'post',
    data,
  })
}
